local rule = fk.CreateSkill {
  name = "#marm_rule&",
}

--关卡结束，询问导出存档
rule:addEffect(fk.GameFinished, {
  priority = 0.001,
  can_refresh = function(self, event, target, player, data)
    return player.role == "lord"
  end,
  on_refresh = function(self, event, target, player, data)
    local owner = Fk:currentRoom():getBanner("marm_save").player
    local room = owner.room  ---@type Room
    --TODO: 询问是否导出存档
    room:sendLog{ type = "无事发生", toast = true }
  end,
})



return rule
